package com.officeFactory;

import com.aspose.AsposeLicese;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.OutputStream;


/**
 * Created by wangg on 2017/12/5.
 */
public abstract class OfficeFactoryBuilder extends AsposeLicese {

    public abstract boolean getLicense();

    public abstract void officeFormat(String officePath, String pdfPath,int format);

    public abstract void officeFormat(FileInputStream officeIn, OutputStream pdfOut,int format);

    public abstract void officeFormat(String officePath,OutputStream pdfOut,int format);

    public abstract void officeFormat(FileInputStream officeIn,String pdfPath,int format);

    public OfficeFactoryBuilder() {
    }
    public void addBuild(int name,Class clazz){
        OfficeFactoryMain.config.put(name,clazz);
    }
}
